﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using DTN.Core;
using Hanel.DTN.News;

public partial class Control_Home_Box_GiaiTri : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        DisplayGiaitri();
    }

    protected void DisplayGiaitri()
    {
        ItblContentManager obj = tblContentManager.CreateInstance();
        DataTable dt = obj.SelecttblContentDynamic_top("Top 3", "Status=1 and ChannelID=88", "ID_Content desc");
        //int id = int.Parse(dt.Rows[0]["ID"].ToString());
        //DataTable dt2 = obj.SelecttblContentDynamic_top("Top 2", "Status=1 and ChannelID=97 and id<>" + id, "DatePage desc");

        DataList1.DataSource = dt;
        DataList1.DataBind();
        
    }
}